﻿using Communication.Model.displacement;
using Communication.Model.netPacket;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Communication.Interface
{
    public interface ICommunicationService
    {
        bool Connect2Server(string IP, int port);

        bool StartData();

        bool StopData();

        bool DebugMode();

        bool RunMode();
        void Dispose();

        bool GetConnectionStatus();

        void AddDataHandler(Action<NetPacket> dataReceived);
        void EnableAutoRefresh();

        void DisableAutoRefresh();
    }
}
